#!/usr/bin/env ipython

import os
import sys

sys.path.append('../../lib')
sys.path.append(os.getenv("HOME")+'/lib')

from flgrcore import *
from flgrarith import *

imin = flgr2d_load_pgm('../../apps/images/gray/lena.pgm')
imin2 = FLGR_Data2D(imin.size_x,imin.size_y,FLGR_UINT8)

flgr2d_arith_addsat(imin2,imin,50)

flgr2d_save_pgm(imin2,'added.pgm')

